<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8" import="java.util.*" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<html>

	<head>
		<link rel="stylesheet" href="${path}/back/css/btn.css" />


		
		


		
	</head>
	<body style="background-color: #f0f9fd;text-align: center;">
	
		<div style="font-size:25px">类别管理</div><hr/>
		<div style="margin-bottom: 10px;">
			<div class="button btn-p"  onclick="javascript:window.location.href='${path}/back/category/add-first.jsp'">添加一级类别&raquo;</div>
			<div class="button btn-p"  onclick="javascript:window.location.href='${path}/category/querylevelsOne'">添加二级类别&raquo;</div>
		</div>
		<table bordercolor='#898E90' align='center' border='3px' cellpadding='10px' cellspacing="0px" >
			<tr bgcolor='lightblue'>
				<td>Id</td>
				<td>类别名</td>
				<td>所属类别</td>
				<td>级别</td>
				<td>操作</td>
			</tr>
			<c:forEach var="list" items="${list}">
			<tr>
				<td>${list.id}</td>
				<td>${list.cate_name}</td>
				<td>${list.ca.cate_name}</td>
				<td>${list.levels}</td>
				<td>
				<c:if test="list"></c:if>
					<div class="button"onclick="javascript:window.location.href='${path}/category/deleteCategory?cater.id=${list.id}&cater.levels=${list.levels}'">删除 &raquo;</div>	
				</if>
				</td>
			</tr>
			
			</c:forEach>
			
		</table><br/>
		
	</body>  
</html>



